import React from 'react';
import { Select } from 'antd';
import type { SelectProps } from 'antd';
import { OrderStatusMap, OrderStatus } from '@/configs/global';
const { Option } = Select;

const OrderStatusSelect = (props: SelectProps) => {
  return (
    <Select allowClear size="large" placeholder="选择订单状态" style={{ width: 256 }} {...props}>
      {OrderStatusMap?.map((status) => {
        return (
          <Option key={status} value={status}>
            {OrderStatus[status]}
          </Option>
        );
      })}
    </Select>
  );
};

export default OrderStatusSelect;
